package com.zjitc.dao;/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/4/2 11:28
 * @description:
 */

import com.zjitc.model.Shipping;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/4/2 11:28
 * @description:
 */

public interface ShippingDao {

  /**
   * add shipping to mysql mmall_shipping
   * @param shipping
   */
  void add(Shipping shipping);

  /**
   * delete from mmall_shipping by shippindId
   * @param shippingId
   */
  int del(String shippingId);

  /**
   * update mmall_shipping by shippingId
   * @param shipping
   */
  void update(Shipping shipping);

  /**
   * select mmall_shipping by shippingId
   * @param shippindId
   * @return
   */
  Shipping select(String shippindId);

  /**
   * select All shipping
   * @return
   */
  List<Shipping> selectAllShipping();

  /**
   * select Max shippingId
   * @return
   */
  int findMAXID();

  /**
   * select All shipping
   * @return
   */
  List<Shipping> findAll();

}
